<template>
  <div>
    <el-container style="height: 100%">
      <el-aside width="auto">
        <common-aside></common-aside>
      </el-aside>
      <el-container>
        <el-header>
          <common-header></common-header>
        </el-header>
        <el-main>
          <el-breadcrumb
            style="margin: 20px"
            separator-class="el-icon-arrow-right"
          >
            <el-breadcrumb-item
              v-for="item in tags"
              :key="item.path"
              :to="{ path: item.path }"
              >{{ item.label }}
            </el-breadcrumb-item>
          </el-breadcrumb>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import CommonAside from "../components/CommonAside.vue";
import CommonHeader from "../components/CommonHeader.vue";
import { mapState } from 'vuex';
export default {
  name: "Home",
  components: {
    CommonAside,
    CommonHeader,
  },
  data() {
    return {
      
    };
  },
  computed: {
    ...mapState({
      tags: (state) => state.tab.tabList,
    }),
  },
};
</script>

<style lang="less" scoped>
.el-header {
  background-color: #333;
}
.el-main {
  padding-top: 0;
}
</style>
